package com.example.myspringboot.design.factory.abstracts.SimpleFactory.impl;

import com.example.myspringboot.design.factory.abstracts.SimpleFactory.Creator;
import com.example.myspringboot.design.factory.abstracts.impl.ConcreteproductB;
import com.example.myspringboot.design.factory.dto.Product;

/**
 * @Author ZhengShan
 * @Date 2024 06 26 11 29
 **/
public class ConcreteCreatorB extends Creator {
    @Override
    public Product factoryMethod() {
        return new ConcreteproductB();
    }
}
